package com.demo;

import com.demo.dao.UserDao;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;

////方式一
//@SpringJUnitConfig(locations = "classpath:application-aop-an.xml")

//方式二
@ExtendWith(SpringExtension.class)
@ContextConfiguration("classpath:application-aop-an.xml")
public class SprintTest2 {
    @Test
    public void test(){}
}
